Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications


convert-datetime

This function converts date and time between local and UTC (GMT) dates and times. Its return value is the utc-offset global variable.

Location: web\method\cgiutils.i

Parameters:

INPUT p_conversion AS CHARACTER

The type of conversion to perform. The valid values are:

INPUT p_idate AS DATE

The date to convert. Uses the DATE data type.

INPUT p_itime AS INTEGER

The time to convert, expressed as seconds since midnight.

OUTPUT p_odate AS DATE

The converted date.

OUTPUT p_otime AS INTEGER

The converted time.

Returns: CHARACTER

Notes: The conversions between local and UTC time are also normalized so that the value of time is between zero and the number of seconds per day.

Examples: See the format-datetime function in web\method\cgiutils.i.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095